<!-- Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->

<polymer-element name="api-link" attributes="name">
  <template>
    <a href="/_ah/api/explorer/#p/buildbucket/v1/buildbucket.{{name}}">
        <label id="label" style="display:none">{{name}}</label>
        <content></content>
      </a>
  </template>
  <script>
    Polymer({
      domReady: function () {
        if (this.innerText == "") {
          this.$.label.style.display = "";
        }
      }
    })
  </script>
</polymer-element>
